package gui.customizepanel;

import javax.swing.BorderFactory;
import javax.swing.GroupLayout;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.LayoutStyle;
import javax.swing.SwingConstants;

public class JAboutPanel extends JPanel {

	private static final long serialVersionUID = 0xA1L;

	private static JAboutPanel instance;

	public static final JAboutPanel getInstance() {
		if (instance == null)
			return instance = new JAboutPanel();
		return instance;
	}

	private JAboutPanel() {
		initComponents();
	}

	private void initComponents() {

		pn_logo = new JPanel();
		pn_info = new JPanel();
		jLabel1 = new JLabel();
		jLabel2 = new JLabel();
		jLabel3 = new JLabel();
		jLabel4 = new JLabel();
		jLabel5 = new JLabel();

		setBackground(new java.awt.Color(254, 254, 254));

		pn_logo.setBorder(BorderFactory.createTitledBorder(""));
		pn_logo.setOpaque(false);

		GroupLayout pn_logoLayout = new GroupLayout(pn_logo);
		pn_logo.setLayout(pn_logoLayout);
		pn_logoLayout.setHorizontalGroup(pn_logoLayout.createParallelGroup(
				GroupLayout.Alignment.LEADING).addGap(0, 197, Short.MAX_VALUE));
		pn_logoLayout.setVerticalGroup(pn_logoLayout.createParallelGroup(
				GroupLayout.Alignment.LEADING).addGap(0, 0, Short.MAX_VALUE));

		pn_info.setBorder(BorderFactory
				.createTitledBorder("Author Information"));
		pn_info.setOpaque(false);

		jLabel1.setFont(new java.awt.Font("Cantarell", 1, 17)); // NOI18N
		jLabel1.setForeground(new java.awt.Color(20, 2, 253));
		jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
		jLabel1.setText("CA_Team Mail Client Version v1.0");

		jLabel2.setFont(new java.awt.Font("Cantarell", 1, 15)); // NOI18N
		jLabel2.setForeground(new java.awt.Color(20, 2, 253));
		jLabel2.setHorizontalAlignment(SwingConstants.LEFT);
		jLabel2.setText("Author");

		jLabel3.setForeground(new java.awt.Color(20, 2, 253));
		jLabel3.setHorizontalAlignment(SwingConstants.LEFT);
		jLabel3.setText("Nguyễn Văn Chúc Ân");

		jLabel4.setForeground(new java.awt.Color(20, 2, 253));
		jLabel4.setHorizontalAlignment(SwingConstants.LEFT);
		jLabel4.setText("Huỳnh Quang Thái");

		jLabel5.setForeground(new java.awt.Color(20, 2, 253));
		jLabel5.setHorizontalAlignment(SwingConstants.LEFT);
		jLabel5.setText("Nguyễn Phúc Thịnh");

		GroupLayout pn_infoLayout = new GroupLayout(pn_info);
		pn_info.setLayout(pn_infoLayout);
		pn_infoLayout
				.setHorizontalGroup(pn_infoLayout
						.createParallelGroup(GroupLayout.Alignment.LEADING)
						.addGroup(
								pn_infoLayout
										.createSequentialGroup()
										.addContainerGap()
										.addGroup(
												pn_infoLayout
														.createParallelGroup(
																GroupLayout.Alignment.LEADING)
														.addComponent(
																jLabel1,
																GroupLayout.DEFAULT_SIZE,
																GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addComponent(
																jLabel2,
																GroupLayout.DEFAULT_SIZE,
																GroupLayout.DEFAULT_SIZE,
																Short.MAX_VALUE)
														.addGroup(
																GroupLayout.Alignment.TRAILING,
																pn_infoLayout
																		.createSequentialGroup()
																		.addGap(0,
																				42,
																				Short.MAX_VALUE)
																		.addGroup(
																				pn_infoLayout
																						.createParallelGroup(
																								GroupLayout.Alignment.LEADING)
																						.addComponent(
																								jLabel4,
																								GroupLayout.Alignment.TRAILING,
																								GroupLayout.PREFERRED_SIZE,
																								291,
																								GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel3,
																								GroupLayout.Alignment.TRAILING,
																								GroupLayout.PREFERRED_SIZE,
																								241,
																								GroupLayout.PREFERRED_SIZE)
																						.addComponent(
																								jLabel5,
																								GroupLayout.Alignment.TRAILING,
																								GroupLayout.PREFERRED_SIZE,
																								188,
																								GroupLayout.PREFERRED_SIZE))))
										.addContainerGap()));
		pn_infoLayout.setVerticalGroup(pn_infoLayout.createParallelGroup(
				GroupLayout.Alignment.LEADING)
				.addGroup(
						pn_infoLayout
								.createSequentialGroup()
								.addContainerGap()
								.addComponent(jLabel1)
								.addGap(18, 18, 18)
								.addComponent(jLabel2)
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jLabel4,
										GroupLayout.PREFERRED_SIZE, 24,
										GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jLabel3,
										GroupLayout.PREFERRED_SIZE, 25,
										GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(jLabel5,
										GroupLayout.PREFERRED_SIZE, 25,
										GroupLayout.PREFERRED_SIZE)
								.addContainerGap(38, Short.MAX_VALUE)));

		pn_infoLayout.linkSize(SwingConstants.VERTICAL,
				new java.awt.Component[] { jLabel3, jLabel4, jLabel5 });

		GroupLayout layout = new GroupLayout(this);
		this.setLayout(layout);
		layout.setHorizontalGroup(layout.createParallelGroup(
				GroupLayout.Alignment.LEADING)
				.addGroup(
						GroupLayout.Alignment.TRAILING,
						layout.createSequentialGroup()
								.addContainerGap()
								.addComponent(pn_logo,
										GroupLayout.PREFERRED_SIZE,
										GroupLayout.DEFAULT_SIZE,
										GroupLayout.PREFERRED_SIZE)
								.addPreferredGap(
										LayoutStyle.ComponentPlacement.RELATED)
								.addComponent(pn_info,
										GroupLayout.DEFAULT_SIZE,
										GroupLayout.DEFAULT_SIZE,
										Short.MAX_VALUE).addContainerGap()));
		layout.setVerticalGroup(layout.createParallelGroup(
				GroupLayout.Alignment.LEADING).addGroup(
				layout.createSequentialGroup()
						.addContainerGap()
						.addGroup(
								layout.createParallelGroup(
										GroupLayout.Alignment.LEADING, false)
										.addComponent(pn_logo,
												GroupLayout.DEFAULT_SIZE,
												GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE)
										.addComponent(pn_info,
												GroupLayout.DEFAULT_SIZE,
												GroupLayout.DEFAULT_SIZE,
												Short.MAX_VALUE))
						.addContainerGap(GroupLayout.DEFAULT_SIZE,
								Short.MAX_VALUE)));
	}

	private JLabel jLabel1;
	private JLabel jLabel2;
	private JLabel jLabel3;
	private JLabel jLabel4;
	private JLabel jLabel5;
	private JPanel pn_info;
	private JPanel pn_logo;
}
